{php include pubTemplate("header_admin")}

<!--main-->
<div class="midder">
{php include template("admin/menu");}
    <div class="page">{$pageUrl}</div>
    <table class="table table-hover">
        <thead class="thead-light fs14">
        <tr>
            <th>ID</th>
            <th>用户ID</th>
            <th>SVG</th>
            <th>标题</th>
            <th>统计</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="fs12">
            {loop $arrSvg $key $item}
            <tr>
                <td valign="middle">{$item['svgid']}</td>
                <td valign="middle">{$item['userid']}</td>
                <td><img src="uploadfile/svg/{$item['photo']}" width="32" height="32" /></td>
                <td valign="middle"><a target="_blank" href="{tsUrl('svg','show',array('id'=>$item['svgid']))}">{tsTitle($item['title'])}</a></td>
                <td valign="middle">
                    浏览：{$item['count_view']} / 评论：{$item['count_comment']}
                </td>
                <td>
                    {if $item['isaudit']==0}
                    <a class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=svg&ac=admin&mg=svg&ts=isaudit1&svgid={$item['svgid']}">取消审核</a>
                    {/if}
                    {if $item['isaudit']==1}
                    <a class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=svg&ac=admin&mg=svg&ts=isaudit0&svgid={$item['svgid']}"><font color="red">审核</font></a>
                    {/if}
                    <a class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=svg&ac=admin&mg=svg&ts=istop&svgid={$item['svgid']}">
                        {if $item['istop']==1}取消置顶{else}置顶{/if}
                    </a>
                    <a class="btn btn-outline-secondary btn-sm" href="{SITE_URL}index.php?app=svg&ac=admin&mg=svg&ts=isrecommend&svgid={$item['svgid']}">
                        {if $item['isrecommend']==1}取消推荐{else}推荐{/if}
                    </a>
                    <a class="btn btn-outline-secondary btn-sm" onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=svg&ac=admin&mg=svg&ts=delete&svgid={$item['svgid']}">删除</a>
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>

{php include pubTemplate("footer_admin")}